define(function(require, exports, module) {
	"require:nomunge,exports:nomunge,module:nomunge";

	var view = require('mokit/view');
	var grid = require('mokit/grid');
	var utils = require('mokit/utils');
	var commonUtils = require('../common/utils');
	var app = require('mokit/app');
	var move = require('mokit/move');
	var $ = require('mokit/jquery');
	/**
	 * 关于页视图
	 */
	return view.create({
		template: module.resovleUri('../templates/ucenter-project-member-contact.html'),
		el: {},
		curUri: require("mokit/navigation").getUri(),
		utils: commonUtils,
		config: app.config,

		/**
		 * 在视图呈现时
		 */
		onRender: function(context) {
			var self = this;
			grid.use(self.ui);
		},

		openGroup: function(context) {
			var self = this;
			var groupBtn = $(context.element);
			var groupBox = groupBtn.next();
			var arrow = groupBtn.find('i');
			if (arrow) {
				arrow.removeClass("ui-icon-arrow-right-grey");
				arrow.addClass("ui-icon-arrow-bottom-grey");
			}
			groupBox.show();
		},

		closeGroup: function(context) {
			var self = this;
			var groupBtn = $(context.element);
			var groupBox = groupBtn.next();
			var arrow = groupBtn.find('i');
			if (arrow) {
				arrow.removeClass("ui-icon-arrow-bottom-grey");
				arrow.addClass("ui-icon-arrow-right-grey");
			}
			groupBox.hide();
		},

		toggleGroup: function(context) {
			var self = this;
			var groupBtn = $(context.element);
			var groupBox = groupBtn.next();
			var closed = groupBox.is(":hidden");
			if (closed) {
				self.openGroup(context);
			} else {
				self.closeGroup(context);
			}
		}
	});
});